package com.yanqu.road.server.timer.activity;

import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.activity.newyearbag.NewYearBagModule;
import com.yanqu.road.server.manger.activity.newyearbag.NewYearBagMgr;
import com.yanqu.road.server.manger.player.GamePlayerMgr;
import com.yanqu.road.utils.executor.GeneralTask;

public class NewYearBagLoginRewardTask extends GeneralTask {

    @Override
    public void doRun() {
        if (NewYearBagMgr.inLoginRewardTime()) {
            for (GamePlayer player : GamePlayerMgr.getAllOnlinePlayer()) {
                player.getModule(NewYearBagModule.class).checkLoginReward();
            }
        }
    }

}
